package cn.hunqing.web.entity;

import java.util.Date;

/**
 * 用户信息
 * @author kai
 *
 */
public class User {
   
    /**
     * the id
     */
    private int id;
    
    /**
     * 微信用户统一标识
     */
    private String unionId;
    
    /**
     * 微信的OpenId,对当前开发者帐号唯一
     */
    private String openId;

    private String userName;

    private String email;

    /**
     * 电话
     */
    private String phone;
    
    private String password;
    
    /**
     * 用户昵称
     */
    private String userNicName;
    
    /**
     * 微信头像访问Url
     */
    private String headPicUrl;
    
    /**
     * 用户性别，0未知，1男性 2女性
     */
    private int gender;
    
    /**
     * 是否可用
     */
    private boolean isDelete;
    
    /**
     * 最后登录时间
     */
    private Date lastLoginTime;
    
    /**
     * 创建时间
     */
    private Date createTime;
    
    /**
     * 更新时间
     */
    private Date updateTime;

    private int loginCount;
    
    /**
     * @return the id
     */
    public int getId() {
        return id;
    }

    /**
     * @param id the id to set
     */
    public void setId(int id) {
        this.id = id;
    }
    
    /**
     * @return the unionId
     */
    public String getUnionId() {
        return unionId;
    }

    /**
     * @param unionId the unionId to set
     */
    public void setUnionId(String unionId) {
        this.unionId = unionId;
    }
    
    /**
     * @return the openId
     */
    public String getOpenId() {
        return openId;
    }

    /**
     * @param openId the openId to set
     */
    public void setOpenId(String openId) {
        this.openId = openId;
    }
    
    /**
     * @return the userNicName
     */
    public String getUserNicName() {
        return userNicName;
    }

    /**
     * @param userNicName the userNicName to set
     */
    public void setUserNicName(String userNicName) {
        this.userNicName = userNicName;
    }
    
    public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public int getLoginCount() {
		return loginCount;
	}

	public void setLoginCount(int loginCount) {
		this.loginCount = loginCount;
	}

	public void setDelete(boolean isDelete) {
		this.isDelete = isDelete;
	}

	/**
     * @return the headPicUrl
     */
    public String getHeadPicUrl() {
        return headPicUrl;
    }

    /**
     * @param headPicUrl the headPicUrl to set
     */
    public void setHeadPicUrl(String headPicUrl) {
        this.headPicUrl = headPicUrl;
    }
    
    /**
     * @return the gender
     */
    public int getGender() {
        return gender;
    }

    /**
     * @param gender the gender to set
     */
    public void setGender(int gender) {
        this.gender = gender;
    }
    
    /**
     * @return the phone
     */
    public String getPhone() {
        return phone;
    }

    /**
     * @param phone the phone to set
     */
    public void setPhone(String phone) {
        this.phone = phone;
    }
    
    
    /**
     * @return the isDelete
     */
    public boolean getIsDelete() {
        return isDelete;
    }

    /**
     * @param isDelete the isDelete to set
     */
    public void setIsDelete(boolean isDelete) {
        this.isDelete = isDelete;
    }
    
    /**
     * @return the lastLoginTime
     */
    public Date getLastLoginTime() {
        return lastLoginTime;
    }

    /**
     * @param lastLoginTime the lastLoginTime to set
     */
    public void setLastLoginTime(Date lastLoginTime) {
        this.lastLoginTime = lastLoginTime;
    }
    
    /**
     * @return the createTime
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * @param createTime the createTime to set
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    
    /**
     * @return the updateTime
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * @param updateTime the updateTime to set
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
    
}
